import { Column, DeleteDateColumn } from "typeorm";
import { BaseEntity as DefinedBaseEntity } from "./base.entity.";

export abstract class DeletedEntity extends DefinedBaseEntity {
    @Column("bigint", { name: "deleted_by", nullable: true })
    deletedBy!: string | null;

    @DeleteDateColumn({ type: "timestamp without time zone", name: "deleted_at", nullable: true })
    deletedAt!: Date | null;
}
